<table class="data_table">
    <tr>
        <g:sortableColumn property="name" title="Name"/>
        <th>Seller</th>
        <g:sortableColumn property="startingBidPrice" title="Start Bid" />
        <g:sortableColumn property="startDate" title="Start Date" defaultOrder="asc"/>
        %{--<th>Description</th>--}%
        <g:sortableColumn property="endDate" title="End Date" />
        <th># of Bids</th>
    </tr>
    <g:each in="${listingInstanceList}" status="i" var="listing">
        <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
            <td><g:link controller="listing" action="show" id="${listing.id}">${listing.name?.encodeAsHTML()}</g:link></td>
            <td><g:link controller="customer" action="show" id="${listing.seller.id}">${listing.seller.getNameFromEMail().encodeAsHTML()}</g:link></td>
            <td><g:formatNumber number="${listing?.startingBidPrice}" type="currency" currencyCode="USD" /></td>
            <td><g:formatDate date="${listing.startDate}" format="MMM d h:mm a" /> </td>
            %{--<td>${listing.description?.encodeAsHTML()}</td>--}%
            <td><g:formatDate date="${listing.endDate}" format="MMM d h:mm a" /> </td>
            <td>${listing.bids.size()?.encodeAsHTML()}</td>
        </tr>
    </g:each>
</table>